# -*- coding:utf-8 -*-

#exec('from applications.%s.modules.log import *' % request.application)
#import logging

MAIN = URL(r=request,a='main',c='default',f='index')
ERROR = URL(r=request,a='main',c='default',f='index')
E = URL(r=request,a='e',c='default',f='index')
LOGIN_E = URL(r=request,a='e',c='default',f='login')
LOGOUT_E = URL(r=request,a='e',c='default',f='logout')
TEST = URL(r=request, a='e', c='test', f='index')
INFO = URL(r=request, a='e', c='info', f='index')
AGREE = URL(r=request, a='e', c='agree', f='index')

HOST='http://'+request.env.http_host

response.menu = [
#    ['首页', False, MAIN],
    ['首页', False, E],
    ['Info', False, INFO],
    ['Test', False, TEST],
    ['Agree', False, AGREE],
    ]
response.title = '爱开店'

def logger(message, value):
    import logging
    logging.warning('~~~'+message+' : '+value)